From: Julian Sparber Date: Fri, 26 Jan 2024 15:44:29 +0000 (+0100) Subject: mpris: Use player Identity if the player app isn't known X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~56 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c5cd1955066df3819ddbfcfb6fbc96b2f41ae8ac;p=gnome-shell.git mpris: Use player Identity if the player app isn't known For players that don't match to an app, we can still do better than the generic fallback if the client provides a valid `Identity` value. Part-of: --- diff --git a/data/dbus-interfaces/org.mpris.MediaPlayer2.xml b/data/dbus-interfaces/org.mpris.MediaPlayer2.xml index 5febaf90b..6c248bfc1 100644 --- a/data/dbus-interfaces/org.mpris.MediaPlayer2.xml +++ b/data/dbus-interfaces/org.mpris.MediaPlayer2.xml @@ -3,5 +3,6 @@ + diff --git a/js/ui/mpris.js b/js/ui/mpris.js index 78b61f4cf..80b6af8fa 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -227,7 +227,7 @@ export class MprisPlayer extends Signals.EventEmitter { } this.source.set({ - title: this._app?.get_name() ?? null, + title: this._app?.get_name() ?? this._mprisProxy.Identity, icon: this._app?.get_icon() ?? null, });